module.exports = {
  // 页面脚本
  script: {
    app: {
      import: "./src/boot/index.ts",
      filename: "popup.js",
    },
    options: {
      import: "./src/boot/options.ts",
      filename: "options.js",
    },
    // 背景层
    background: {
      import: "./src/chrome/background.ts",
      filename: "background.js",
    },
  },
  // 模板
  template: [
    {
      template: "./src/template/index.html",
      filename: "popup.html",
      chunks: ["app"],
    },
    {
      template: "./src/template/index.html",
      filename: "options.html",
      chunks: ["options"],
    },
  ],
};
